﻿
/*
KoolBox jQuery Plugin 1.0

http://nasa8x.com
http://demo.nasa8x.com/jquery/koolbox-plugin/

Copyright (c) 2011 Nasa8x

Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html
*/
//eval(function(p, a, c, k, e, r) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace( /^/ , String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function(e) { return r[e] }]; e = function() { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('(8($){$.17({1M:{1N:{1n:\'2F\',1v:\'4n\',1w:4o,1j:\'\',3n:P,3o:18,3p:4p,E:4q,F:4r,2G:1,3q:1,1a:4s,J:\'1h\',1o:\'1b\',2g:{1b:0,11:0},3r:{1x:0.5,2H:\'#4t\',1a:{Q:2I,Z:3s}},1p:{1a:2I,2J:18,2K:\'4u\'},1O:{2h:\'4v\',2L:\'4w\'},2M:1c,4x:1c},2i:{E:4y,F:4z,1f:{2j:1,3t:1,4A:1,4B:1},2k:\'<1P 1Q="{0}" E="{1}" F="{2}" 1f="{3}" J="{4}" 4C="4D" 4E="P" 3t="P" 2j="P" 4F="4G"></1P>\'},3u:{3v:37,3w:40,3x:39,3y:38,3z:13,3A:27},2k:\'<N K="{0}" G="D-4H">                            <3B 4I="0" 4J="0" E="2l%" G="D-3C">                                <1y>                                    <1g G="D-t-l"/><1g G="D-t-c" /><1g G="D-t-r"/>                                </1y>                                <1y>                                    <1g G="D-m-l"/>                                    <1g G="D-m-c">                                         <N K="{0}4K" G="D-1R">                                            <N K="{0}4L" G="D-1j"></N>                                            <N K="{0}4M" G="D-1z"></N>                                            <a K="{0}4N" 1k="1A:1B(0)" G="D-1d"><19></19></a>                                            <N K="{0}4O" G="D-1S"></N>                                            <N K="{0}4P" G="D-3D"></N>                                            <N K="{0}4Q" G="D-3E">                                                    <a 1k="1A:1B(0)" G="D-11"><19></19></a>                                                    <a 1k="1A:1B(0)" K="{0}4R" G="D-1T"><19></19></a>                                                    <a 1k="1A:1B(0)" K="{0}4S" G="D-1q"><19></19></a>                                                    <a 1k="1A:1B(0)" K="{0}4T" G="D-1C"><19></19></a>                                                    <a 1k="1A:1B(0)" G="D-2N"><19></19></a>                                            </N>                                            <N G="D-3F" K="{0}4U"></N>                                        </N>                                     </1g>                                     <1g G="D-m-r" />                                </1y>                                <1y>                                <1g G="D-b-l"/><1g G="D-b-c"/><1g G="D-b-r"/>                                </1y>                        </3B>                  </N>\',L:{i:0,1U:[],1V:[]},U:1c,M:{},1p:1c,1W:1c,3G:{1r:{12:/[^\\.]\\.(1r)\\b/i},2O:{12:/2O\\.T\\/2m\\?v=([A-1X-1Y-9.1l%-]*)[&\\w;=\\+1l\\-]*/,14:"1i://1D.2O.T/v/{0}",1f:{4V:1}},2n:{1f:{4W:\'2n.T\',1j:1,4X:0,4Y:1},12:/2n.T\\/(\\d+)($|\\/|\\b)/i,14:"1i://2n.T/4Z.1r?51={0}"},2P:{1f:{2j:P},12:/2P\\.T\\/\\?v=([A-1X-1Y-9.1l%-]*)[&\\w;=\\+1l\\-]*/i,14:"1i://1D.2P.T/v/{0}"},2Q:{12:/2Q.T\\/1Z\\/1Z\\.52\\?v=(\\d+)($|s+|\\/)/i,14:\'1i://1D.2Q.T/v/{0}\'},2R:{1f:{2j:\'53\'},12:/2R\\.T\\/2m\\/(\\d+)($|\\/)/i,14:"1i://1D.2R.T/54/{0}/3H.1r"},2S:{1f:{55:0},12:/2S.T\\/1Z\\/([A-1X-1Y-9.1l%-]*)($|\\/)/i,14:"1i://1D.2S.T/1r/1Z/{0}"},56:{12:/3I.3J\\/2m\\/[a-57-58-59%-]+,([A-1X-1Y-9.1l%-]*)($|\\/)/i,14:\'1i://3I.3J/w/{0}\'},2T:{1f:{3K:\'5a.5.7.0.5b\',3H:\'5c\',5d:1},12:/2T\\.T\\/2m\\/([A-1X-1Y-9.1l%-]*)($|\\/)/i,14:"1i://1D.2T.T/1r/5e/5f.1r?5g={0}&K=5h"},3L:{12:/\\b.5i\\b/i,J:\'1Z/3L\'}},21:{2U:{12:/21.2U.T\\/21\\/?(.*)/i,14:"1i://21.2U.T/?5j=1P&5k;{0}"}},2V:8(){C $.3M.5l&&2W($.3M.3K)<9},10:8(){2X(j i=0;i<2Y.1e;i++)B(2o 2Y[i]!=\'10\')C 18;C P},3N:8(a){j b=/[^\\.]\\.(5m|5n|5o|3O|5p|5q)\\b/i;B(a.2p(b))C P;R C 18},3P:8(){j b=3Q.1R,e=3Q.5r,w=0,h=0;B(e){h=2Z.30(h,e.3R,e.3S)}B(b){h=2Z.30(h,b.3R,b.3S);B(15.5s){h=2Z.30(h,15.5t)}}C h},5u:8(b){C $.5v(b,8(a){C $(a).2q()})},1E:8(a){B(a){B(2o(a)==\'5w\'){B(a.1e>0)C 18}B(a!=1c)C 18}C P},X:8(a){j b=a;$.1s(2Y,8(i,n){b=b.5x(1F 5y("\\\\{"+(i-1)+"\\\\}","g"),n)});C b},3T:8(a){$.1s(a,8(a,b){j i=1F 3U();i.1Q=b})},3V:8(){C $.17({F:$(15).F(),E:$(15).E(),1b:$(15).5z(),11:$(15).5A()})},31:8(o){j b=2o(o);j a=[];B(b=="3W"){2X(j c 5B o){B(2o(o[c])=="3W"){6.31(o[c])}R{a.22(c+\'=\'+5C(o[c]))}}C a.5D(\'&\')}C\'\'},3X:8(b){j o={};B(!6.10(b)&&!$.3Y(b)&&b.32(\'?\')>=0){j c=b.33(\'?\')[1];j d=c.33(\'&\');$.1s(d,8(i,v){j a=v.33(\'=\');o[a[0]]=a[1]})}C o},V:8(a){j b=!6.10(a)?\'1l\'+a:\'\';C $(6.X(\'#{0}{1}\',6.U,b))},I:8(){C 6.V()},2r:8(){C 6.V(\'3D\')},2s:8(){C 6.V(\'1j\')},34:8(){C 6.V(\'1R\')},23:8(){C 6.V(\'1S\')},3Z:8(){C 6.V(\'1d\')},2t:8(){C 6.V(\'1q\')},41:8(){C 6.V(\'1C\')},42:8(){C 6.V(\'1T\')},43:8(){C 6.V(\'2h\')},5E:8(){C 6.V(\'24\')},35:8(){C 6.V(\'3F\')},36:8(){C 6.V(\'3E\')},3a:8(){C 6.V(\'1z\')},3b:{1N:{2H:\'#5F\',1x:0.3,E:\'2l%\',O:1c,1a:{Q:2I,Z:3s}},M:{},3c:8(){C $($.1M.X("#44{0}",6.U))},25:8(s){s=$.17(6.M,6.1N,s||{});6.U=1F 3d().3e();j o=$($.1M.X(\'<N K="44{0}"></N>\',6.U));$(\'1R\').1t(o);o.1m({2g:\'45\',1b:0,11:0,46:s.2H,1x:s.1x,1w:s.1w,E:s.E,F:$.1M.3P()}).Z().3f(s.1a.Q);B($.2u(s.O)){o.16(\'O\',8(){s.O.2v()})}},Q:8(s){B(6.U){6.3c().3f(6.M.1a.Q)}R{6.25(s)}},Z:8(a){6.3c().5G(6.M.1a.Z,8(){B($.2u(a)){a.2v()}})}},47:8(){6.I().5H("*").1s(8(){j a=$(6).1m(\'46-2F\');B(a.32(".3O")!=-1){j b=\'5I\';$(6).5J(0).5K.5L="5M:5N.5O.5P(5Q=\'P\',5R=\'"+b+"\')"}})},3g:8(){6.1z=P;j l=6.3a();j w=l.3h();j h=l.3i();j y=((6.E-w)/2);j x=((6.F-h)/2);l.1m({1b:x,11:y}).Q()},3j:8(){6.1z=18;6.3a().Z()},1o:8(f){B(!6.2w)C;j v=6.3V();j m=6.I();j w=m.3h();j h=m.3i();j y=v.11+((v.E-w)/2);j x=v.1b+((v.F-h)/2);j a=6.M.1p;j p=6.M.2g;B(f){B(p==\'11\'||p==\'2N\'){m.1m({1b:x,11:p=="2N"?(v.11+v.E):0})}R{m.1m({1b:p=="5S"?v.1b+v.F:0,11:y})}}B(6.1p){6.1p.1G()}6.1p=m.2x({11:y,1b:x},{1a:a.1a,2J:a.2J,2K:a.2K})},1d:8(a){6.2w=18;6.I().2x({\'1x\':0,\'1b\':\'-=50\'},6.M.1p.1a,$.S(8(){B(6.M.2G){6.3b.Z()}6.23().3k();6.2s().3k();6.V().Z();6.1G();B($.2u(6.M.26)&&a!=10){6.M.26.2v(15,$.5T(a))}},6))},48:8(){$(15).1H("1I.Y 49.Y").16("1I.Y 49.Y",$.S(8(){6.1o()},6));$(15).1H("3l.Y").16(\'3l.Y\',$.S(8(e){B(6.2w){j k=6.3u;5U(e.4a){1J k.3A:6.1d();e.2y();2z;1J k.3v:1J k.3y:B(6.L.1K>1)6.1T();2z;1J k.3x:1J k.3w:B(6.L.1K>1)6.1C();2z;1J k.3z:B((6.M.J==\'28\'||6.M.J==\'24\')&&!(/5V|5W|5X/i.5Y(e.4b.5Z)||e.4b.J==="4c")){6.43().60(\'O\');e.2y()}2z}}},6));6.3Z().1H("O.Y").16("O.Y",$.S(6.1d,6));6.41().1H("O.Y").16(\'O.Y\',$.S(6.1C,6));6.42().1H("O.Y").16(\'O.Y\',$.S(6.1T,6));6.2t().1H(\'O.Y\').16(\'O.Y\',$.S(8(){B(6.1W==1c){6.1q()}R{6.1G()}},6));B($.2u(6.M.2M)){6.M.2M.2v()}},29:8(s){B(!6.1E(s)&&s!=6.1n){s=\'1n-\'+s;j i=6.34();B(!6.1E(6.1n)){i.2A(6.1n)}i.1u(s);6.1n=s}},4d:8(s){B(!6.1E(s)&&s!=6.1v){s=\'D-\'+s;j i=6.I();B(!6.1E(6.1v)){i.2A(6.1v)}i.1u(s);6.1v=s}},4e:8(a,b){j W=$(15).E()*0.9;j H=$(15).F()*0.9;B(a>W){b=b*(W/a);a=W;B(b>H){a=a*(H/b);b=H}}R B(b>H){a=a*(H/b);b=H;B(a>W){b=b*(W/a);a=W}}C{E:2W(a),F:2W(b)}},1I:8(w,h){j b=6.34();j a=!6.10(w)?w:b.3h();j c=!6.10(h)?h:b.3i();6.E=a;6.F=c;b.1m({E:a,F:c});6.1o()},25:8(){j o=6.M;B(6.U==1c){6.U=\'61\'+1F 3d().3e();$(\'1R\').1t(6.X(6.2k,6.U))}B(o.2G){j a=$.17({},o.3r,{1w:o.1w-1,O:o.3q?$.S(6.1d,6):1c});6.3b.Q(a)};6.I().1m({2g:\'45\',1x:1.0,\'z-62\':o.1w}).Q();B(!6.1E(o.1j)){6.2s().1h(o.1j).Q()}R{6.2s().Z()}6.1I(o.E,o.F);6.2r().Z();6.36().Z();6.35().Z();6.4d(o.1v);6.29(o.1n);B(6.2V()){6.47()}6.48();6.2w=P},2B:8(x){B(!6.10(6.L.1U)&&6.L.1U.1e>x){C 6.L.1U[x]}C\'\'},4f:8(){j m=6.I();2X(j i=0;i<2;i++){m.2x({11:"+=20"},2l);m.2x({11:"-=20"},2l)}},Q:8(a,c,d,u){j q=6.3X(a);$.17(c,q||{});j o=$.17({},6.1N,c||{});6.M=o;6.25();6.1o(P);6.1z=18;j f;6.L.1V=[];6.L.1K=0;B($.3Y(a)&&a.1e>1){j g=!6.10(u)?$.63(u,a):0;6.L.i=g;6.L.1V=a;6.L.1U=d;6.L.1K=a.1e;6.36().Q();6.2a(a[g],6.2B(g));B(o.3n){6.3T(a)}B(o.3o){6.1q()}}R B(6.3N(a)){6.2a(a,d)}R B(o.J==\'2b\'){f=6.X(\'<2b K="{0}4g" 1Q="{1}" E="{2}" F="{3}" 4h="0"></2b>\',6.U,a,o.E,o.F);6.1L(f)}R B(o.J==\'2c\'){6.2c(a)}R{j b=18;$.1s(6.3G,$.S(8(i,v){j d=a.2p(v.12);B(d){j e=!6.10(v.14)?6.X(v.14,d[1]):a;j t=!6.10(v.J)?v.J:\'64/x-65-2i\';6.1P(e,c.E,c.F,v.1f,t);b=P;C}},6));B(!b){$.1s(6.21,$.S(8(i,v){j c=a.2p(v.12);B(c){j d=6.X(v.14,c[1]);f=6.X(\'<2b K="{0}4g" 1Q="{1}" E="{2}" F="{3}" 4h="0"></2b>\',6.U,d,o.E,o.F);6.1L(f);b=P;C}},6))}B(!b){B(a.2p(/#/)){j e=a.66(a.32("#"));B($(e).1e>0){f=$(a).67(P).Q().1u(\'1S-4i\');6.1L(f)}}R{6.2c(a)}}}},1C:8(){B(6.1z)C;j x=6.L.i;B(x+1>=6.L.1K){x=0}R{x=x+1}6.L.i=x;6.2a(6.L.1V[x],6.2B(x))},1T:8(){j x=6.L.i;B(x-1<0){x=6.L.1K-1}R{x=x-1}6.L.i=x;6.2a(6.L.1V[x],6.2B(x))},1q:8(){6.2t().2A(\'D-1q\').1u(\'D-1G\');6.1W=15.68($.S(6.1C,6),6.M.3p)},1G:8(){6.2t().2A(\'D-1G\').1u(\'D-1q\');15.69(6.1W);6.1W=1c},1P:8(a,w,h,b,t){j f=6.2i;j c=$.17({},6.2i.1f,b||{});j d=!6.10(w)?w:f.E;j e=!6.10(h)?h:f.F;j v=6.31(c);j g=6.X(f.2k,a,d,e,v,t);6.1I(d,e);6.1L(g)},2c:8(a){6.3g();$.2c({14:a,J:"6a",6b:18,6c:"1h",6d:8(){28("6e 6f 1S 6g 6h 6i. 6j 6k 6l 6m.")},6n:$.S(8(a){6.3j();j b=$(a).1u(\'1S-4i\');6.1L(b)},6)})},1L:8(a){6.29(\'1h\');6.23().1h(a).Q();6.1o()},2a:8(i,d){6.29(\'2F\');6.3g();j a=1F 3U();a.1Q=6.2V()?i+\'?\'+1F 3d().3e():i;$(a).6o($.S(8(){6.3j();j s=6.4e(a.E,a.F);6.1I(s.E,s.F);$(a).Z();6.23().1h(a).Q();$(a).1m({E:s.E,F:s.F}).3f(6.M.1a);B(!6.10(d)&&d.1e>0){6.2r().3k().1h(d).Q()}R{6.2r().Z()}},6))},2C:8(m,o){o=$.17({},6.1N,{E:6p,F:\'6q\'},o||{});6.M=o;6.25();6.29(\'6r\');j c=6.23();c.1u(o.J).1h(m).Q();j b=$(\'<N G="2d-3C" />\');B(o.J==\'28\'||o.J==\'2D\'){b.1t($(6.X(\'<2e J="2d" 2E="{0}" K="{1}4j" />\',o.1O.2h,6.U)).16(\'O\',$.S(8(e){6.1d(P)},6)));B(o.J==\'2D\'){b.1t($(6.X(\'<2e J="2d" 2E="{0}" K="{1}4k" />\',o.1O.2L,6.U)).16(\'O\',$.S(8(e){6.1d(18)},6)))}}R B(o.J=="24"){j d=$(6.X(\'<2e J="4c" K="{0}6s" />\',6.U)).16(\'3l\',$.S(8(e){j a=d.2q();B(e.4a==13&&a.1e>0){6.1d(a)}},6));j f=$(6.X(\'<2e J="2d" 2E="{0}" K="{1}4j" />\',o.1O.2h,6.U)).16(\'O\',$.S(8(e){B(d.2q().1e<=0){d.6t();6.4f()}R{6.1d(d.2q())}e.2y()},6));c.1t(d);b.1t(f).1t($(6.X(\'<2e J="2d" 2E="{0}" K="{1}4k" />\',o.1O.2L,6.U)).16(\'O\',$.S(8(e){6.1d()},6)))}6.35().1h(b).Q();6.1o(P)},28:8(a,b,c){j o=$.17({},{J:\'28\',26:c},b||{});6.2C(a,o)},2D:8(a,b,c){j o=$.17({},{J:\'2D\',26:c},b||{});6.2C(a,o)},24:8(a,b,c){j o=$.17({},{J:\'24\',26:c},b||{});6.2C(a,o)}}});$.6u.Y=8(b){C $(6).16(\'O\',8(e){e.2y();j m=$(6);m.6v();j u=m.2f(\'1k\');j a=[];j d=[];j r=$.4l(m.2f(\'3m\'))||\'\';j t=$.4l(m.2f(\'1j\'))||\'\';B(!r||r==\'\'||r===\'6w\'){a.22(u);B(t&&t!=\'\'){d.22(t)}}R{$("a[3m="+r+"], 6x[3m="+r+"]").1s(8(){a.22($(6).2f(\'1k\'));d.22($(6).2f(\'1j\'))})}B(a.1e==1)a=a[0];B(d.1e==1)d=d[0];j o=$.17(P,{},b||{},$.4m?m.4m():$.6y?m.6z():{});$.1M.Q(a,o,d,u)})}})(6A);', 62, 409, '||||||this||function|||||||||||var||||||||||||||||||if|return|kb|width|height|class|||type|id|GL|options|div|click|true|show|else|proxy|com|Id|getObj||format|koolbox|hide|undefined|left|reg||url|window|bind|extend|false|span|duration|top|null|close|length|flashvars|td|html|http|title|href|_|css|mode|showPosition|animation|play|swf|each|append|addClass|theme|zIndex|opacity|tr|loading|javascript|void|next|www|isNullOrEmpty|new|stop|unbind|resize|case|total|showHtml|KoolBox|defaults|buttons|embed|src|body|content|prev|descs|imgs|timer|Za|z0|video||maps|push|getContent|prompt|create|closeCallback||alert|switchMode|showImg|iframe|ajax|button|input|attr|position|ok|flash|autoplay|tmp|100|watch|vimeo|typeof|match|val|getDesc|getTitle|getPlay|isFunction|apply|visibled|animate|preventDefault|break|removeClass|getDescription|msg|confirm|value|image|modal|bg|500|queue|easing|cancel|showCallback|right|youtube|megavideo|facebook|metacafe|dailymotion|veoh|google|oldIE|parseInt|for|arguments|Math|max|objectToArgs|indexOf|split|getBody|getFoot|getControls||||getLoading|Overlay|getId|Date|getTime|fadeIn|showLoading|outerWidth|outerHeight|hideLoading|empty|keydown|rel|preload|autoPlay|interval|hideModalClick|overlay|300|autostart|keyboard|LEFT|DOWN|RIGHT|UP|ENTER|ESCAPE|table|wrapper|desc|controls|foot|medias|player|clip|vn|version|quicktime|browser|isImage|png|getDocHeight|document|scrollHeight|offsetHeight|preloadImages|Image|viewport|object|queryStringToObject|isArray|getClose||getNext|getPrev|getOk|overlay_|absolute|background|pngFix|addEvents|scroll|keyCode|target|text|switchTheme|parseSize|shake|_iframe|frameborder|padding|_ok|_cancel|trim|metadata|window7|10000|3000|470|280|800|333|easeInOutBack|OK|Cancel|hideCallback|640|510|fullscreenbutton|fullscreen|allowscriptaccess|always|allowfullscreen|wmode|transparent|container|cellpadding|cellspacing|_body|_title|_loading|_close|_content|_desc|_controls|_prev|_play|_next|_foot|fs|server|portrait|byline|moogaloop||clip_id|php|yes|fplayer|additionalInfos|clipvn|zA|Z0|9_|AFrontend|1060|videodetailsembedded|videoAutoPlay|webplayer|WebPlayer|permalinkId|anonymous|mov|output|amp|msie|jpg|jpeg|gif|bmp|tiff|documentElement|innerWidth|innerHeight|toArguments|map|string|replace|RegExp|scrollTop|scrollLeft|in|encodeURIComponent|join|getPrompt|333333|fadeOut|find|scale|get|runtimeStyle|filter|progid|DXImageTransform|Microsoft|AlphaImageLoader|enabled|sizingMethod|bottom|makeArray|switch|option|textarea|select|test|nodeName|trigger|koolbox_|index|inArray|application|shockwave|substr|clone|setInterval|clearInterval|GET|cache|dataType|error|The|requested|cannot|be|loaded|Please|try|again|later|success|load|400|auto|message|_prompt|focus|fn|blur|nofollow|area|meta|data|jQuery'.split('|'), 0, { }));



(function ($) {
    $.extend({
        KoolBox: {
            defaults: {

                mode: 'image',          //'image', 'html'
                theme: 'window7',
                zIndex: 10000,
                title: '',              // window title
                preload: true,          // preload image
                autoPlay: false,        // auto play width gallery slideshow
                interval: 3000,         // 
                width: 470,
                height: 280,
                modal: 1,               // display overlay
                hideModalClick: 1,      // close when click overlay
                duration: 800,
                type: 'html',           // ajax, image , iframe
                showPosition: 'top',    //'left','right','bottom'
                /*
                controls: {
                alwayDisplay: false,
                width: 'full',
                position: ['center', 'bottom'], //
                padding: 5
                },
                */
                position: {
                    top: 0,
                    left: 0
                },
                overlay: {
                    opacity: 0.5,
                    bg: '#333',
                    duration: {
                        show: 500,
                        hide: 300
                    }
                },
                animation: {
                    duration: 500,
                    queue: false,
                    easing: 'easeInOutBack'// 'swing'
                },
                buttons: {
                    ok: 'OK',
                    cancel: 'Cancel'
                },
                showCallback: null,
                hideCallback: null

            },

            flash: {
                width: 640,
                height: 510,
                flashvars: {
                    autoplay: 1,
                    autostart: 1,
                    fullscreenbutton: 1,
                    fullscreen: 1
                },
                tmp: '<embed src="{0}" width="{1}" height="{2}" flashvars="{3}" type="{4}" allowscriptaccess="always" allowfullscreen="true" autostart="true" autoplay="true" wmode="transparent"></embed>'
            },
            keyboard:
            {
                LEFT: 37,
                DOWN: 40,
                RIGHT: 39,
                UP: 38,
                ENTER: 13,
                ESCAPE: 27
            },
            tmp: '<div id="{0}" class="kb-container">\
                            <table class="kb-wrapper">\
                                <tr>\
                                    <td class="kb-t-l"/><td class="kb-t-c" /><td class="kb-t-r"/>\
                                </tr>\
                                <tr>\
                                    <td class="kb-m-l"/>\
                                    <td class="kb-m-c"> \
                                        <div id="{0}_body" class="kb-body">\
                                            <div id="{0}_title" class="kb-title"></div>\
                                            <div id="{0}_loading" class="kb-loading"></div>\
                                            <a id="{0}_close" href="javascript:void(0)" class="kb-close"><span></span></a>\
                                            <div id="{0}_content" class="kb-content"></div>\
                                            <div id="{0}_desc" class="kb-desc"></div>\
                                            <div id="{0}_controls" class="kb-controls">\
                                                    <a href="javascript:void(0)" class="kb-left"><span></span></a>\
                                                    <a href="javascript:void(0)" id="{0}_prev" class="kb-prev"><span></span></a>\
                                                    <a href="javascript:void(0)" id="{0}_play" class="kb-play"><span></span></a>\
                                                    <a href="javascript:void(0)" id="{0}_next" class="kb-next"><span></span></a>\
                                                    <a href="javascript:void(0)" class="kb-right"><span></span></a>\
                                            </div>\
                                            <div class="kb-foot" id="{0}_foot"></div>\
                                        </div>\
                                     </td>\
                                     <td class="kb-m-r" />\
                                </tr>\
                                <tr>\
                                <td class="kb-b-l"/><td class="kb-b-c"/><td class="kb-b-r"/>\
                                </tr>\
                        </table>\
                  </div>'
            ,
            GL: {
                i: 0,
                descs: [],
                imgs: []
            },
            Id: null,
            options: {},
            animation: null,
            timer: null,
            medias: {
                swf: {
                    reg: /[^\.]\.(swf)\b/i
                },
                youtube: {
                    reg: /youtube\.com\/watch\?v=([A-Za-z0-9._%-]*)[&\w;=\+_\-]*/,
                    url: "http://www.youtube.com/v/{0}",
                    flashvars: {
                        fs: 1
                    }
                },
                vimeo: {
                    flashvars: {
                        server: 'vimeo.com',
                        title: 1,
                        portrait: 0,
                        byline: 1
                    },
                    reg: /vimeo.com\/(\d+)($|\/|\b)/i,
                    url: "http://vimeo.com/moogaloop.swf?clip_id={0}"

                },

                megavideo: {
                    flashvars: {
                        autoplay: true
                    },
                    reg: /megavideo\.com\/\?v=([A-Za-z0-9._%-]*)[&\w;=\+_\-]*/i,
                    url: "http://www.megavideo.com/v/{0}"
                },

                facebook: {

                    reg: /facebook.com\/video\/video\.php\?v=(\d+)($|s+|\/)/i,
                    url: 'http://www.facebook.com/v/{0}'
                },

                metacafe: {
                    flashvars: {
                        autoplay: 'yes'
                    },
                    reg: /metacafe\.com\/watch\/(\d+)($|\/)/i,
                    url: "http://www.metacafe.com/fplayer/{0}/player.swf"
                },
                dailymotion: {
                    flashvars: {
                        additionalInfos: 0
                    },
                    reg: /dailymotion.com\/video\/([A-Za-z0-9._%-]*)($|\/)/i,
                    url: "http://www.dailymotion.com/swf/video/{0}"
                },

                clipvn: {
                    reg: /clip.vn\/watch\/[a-zA-Z0-9_%-]+,([A-Za-z0-9._%-]*)($|\/)/i,
                    url: 'http://clip.vn/w/{0}'
                },

                veoh: {
                    flashvars: {
                        version: 'AFrontend.5.7.0.1060',
                        player: 'videodetailsembedded',
                        videoAutoPlay: 1
                    },
                    reg: /veoh\.com\/watch\/([A-Za-z0-9._%-]*)($|\/)/i,
                    url: "http://www.veoh.com/swf/webplayer/WebPlayer.swf?permalinkId={0}&id=anonymous"
                },

                quicktime: {
                    reg: /\b.mov\b/i,
                    type: 'video/quicktime'
                }

            },

            maps: {

                google: {
                    reg: /maps.google.com\/maps\/?(.*)/i,
                    url: "http://maps.google.com/?output=embed&amp;{0}"
                }
            },

            oldIE: function () {
                return $.browser.msie && parseInt($.browser.version) < 9;
            },
            undefined: function () {
                for (var i = 0; i < arguments.length; i++)
                    if (typeof arguments[i] != 'undefined') return false;
                return true;
            },

            isImage: function (src) {
                var reg = /[^\.]\.(jpg|jpeg|gif|png|bmp|tiff)\b/i;
                //  var reg = /(?i)\.(jpg|jpeg|gif|png|bmp|tiff)$/i;
                if (src.match(reg))
                    return true;
                else
                    return false;
            },
            getDocHeight: function () {

                var b = document.body,
                e = document.documentElement,
                w = 0,
                h = 0;
                if (e) {
                    //w = Math.max(w, e.scrollWidth, e.offsetWidth);
                    h = Math.max(h, e.scrollHeight, e.offsetHeight);
                }
                if (b) {
                    // w = Math.max(w, b.scrollWidth, b.offsetWidth);
                    h = Math.max(h, b.scrollHeight, b.offsetHeight);
                    if (window.innerWidth) {
                        //  w = Math.max(w, window.innerWidth);
                        h = Math.max(h, window.innerHeight);
                    }
                }
                return h; // [w, h];

            },
            toArguments: function (array) {
                return $.map(array, function (a) {
                    return $(a).val();
                });
            },
            isNullOrEmpty: function (value) {
                if (value) {
                    if (typeof (value) == 'string') {
                        if (value.length > 0)
                            return false;
                    }
                    if (value != null)
                        return false;
                }
                return true;

            },
            format: function (source) {

                var result = source;
                $.each(arguments, function (i, n) {
                    result = result.replace(new RegExp("\\{" + (i - 1) + "\\}", "g"), n);
                });
                return result;
            },


            preloadImages: function (a) {
                $.each(a, function (key, value) {
                    var i = new Image();
                    i.src = value;
                });

            },

            viewport: function () {
                return $.extend({
                    height: $(window).height(),
                    width: $(window).width(),
                    top: $(window).scrollTop(),
                    left: $(window).scrollLeft()
                });

            },

            objectToArgs: function (o) {
                var type = typeof (o);
                var a = [];
                if (type == "object") {
                    for (var key in o) {
                        if (typeof (o[key]) == "object") {
                            this.objectToArgs(o[key]);
                        }
                        else {
                            a.push(key + '=' + encodeURIComponent(o[key]));
                        }

                    }
                    return a.join('&');
                }
                return '';
            },

            queryStringToObject: function (url) {
                var o = {};
                if (!this.undefined(url) && !$.isArray(url) && url.indexOf('?') >= 0) {
                    var qs = url.split('?')[1];
                    var pairs = qs.split('&');
                    $.each(pairs, function (i, v) {
                        var pair = v.split('=');
                        o[pair[0]] = pair[1];
                    });
                }
                return o;

            },

            getObj: function (a) {
                var b = !this.undefined(a) ? '_' + a : '';
                return $(this.format('#{0}{1}', this.Id, b));
            },

            I: function () {
                return this.getObj();
            },

            getDesc: function () {
                return this.getObj('desc');
            },
            getTitle: function () {
                return this.getObj('title');
            },
            getBody: function () {
                return this.getObj('body');
            },

            getContent: function () {
                return this.getObj('content');
            },
            getClose: function () {
                return this.getObj('close');
            },

            getPlay: function () {
                return this.getObj('play');
            },

            getNext: function () {
                return this.getObj('next');
            },

            getPrev: function () {
                return this.getObj('prev');
            },

            getOk: function () {
                return this.getObj('ok');
            },

            getPrompt: function () {
                return this.getObj('prompt');
            },
            getFoot: function () {
                return this.getObj('foot');
            },

            getControls: function () {
                return this.getObj('controls');
            },

            getLoading: function () {
                return this.getObj('loading');
            },

            Overlay: {
                defaults: {
                    bg: '#333333',
                    opacity: 0.3,
                    width: '100%',
                    zIndex: 99,
                    click: null,
                    duration: {
                        show: 500,
                        hide: 300
                    }
                },
                options: {},
                calls: 0,
                getId: function () {
                    return $($.KoolBox.format("#overlay_{0}", this.Id));
                },


                create: function (s) {

                    s = $.extend(this.options, this.defaults, s || {});
                    this.Id = new Date().getTime();
                    var o = $($.KoolBox.format('<div id="overlay_{0}"></div>', this.Id));
                    $('body').append(o);
                    o.css({
                        position: 'absolute',
                        top: 0,
                        left: 0,
                        background: s.bg,
                        opacity: s.opacity,
                        zIndex: s.zIndex,
                        width: s.width,
                        height: $.KoolBox.getDocHeight()
                    }).hide().fadeIn(s.duration.show);

                    if ($.isFunction(s.click)) {
                        o.bind('click', function () {
                            s.click.apply();
                        });
                    }



                },
                show: function (s) {


                    if (this.Id) {
                        this.getId().fadeIn(this.options.duration.show);
                    }
                    else {

                        this.create(s);
                    }

                },
                hide: function (callback, args) {
                    this.getId().fadeOut(this.options.duration.hide, function () {
                        if ($.isFunction(callback)) {
                            callback.call(window, args);
                        }
                    });

                }
            },


            pngFix: function () {

                this.I().find("*").each(function () {

                    var bgIMG = $(this).css('background-image');
                    if (bgIMG.indexOf(".png") != -1) {
                        var mode = 'scale';
                        /*if ($(this).css('backgroundRepeat') == 'no-repeat' || $(this).css('background-repeat') == 'no-repeat')
                        mode = 'crop';*/
                        //var iebg = bgIMG.split('url("')[1].split('")')[0];
                        // $(this).css('background-image', 'none');
                        $(this).get(0).runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='" + mode + "')";
                        //$(this).get(0).style.backgroundImage = 'url("/blank.gif")';

                    }
                });


            },
            showLoading: function () {

                this.loading = true;
                var l = this.getLoading();
                var w = l.outerWidth();
                var h = l.outerHeight();
                var y = ((this.width - w) / 2);
                var x = ((this.height - h) / 2);
                l.css({ top: x, left: y }).show();

            },

            hideLoading: function () {

                this.loading = false;
                this.getLoading().hide();
            },

            showPosition: function (f) {

                if (!this.visibled) return;

                var v = this.viewport();
                var m = this.I();
                //var h = !this.undefined(height) ? height : m.outerHeight();
                //var w = !this.undefined(width) ? width : m.outerWidth();
                var w = m.outerWidth();
                var h = m.outerHeight();
                var y = v.left + ((v.width - w) / 2);
                var x = v.top + ((v.height - h) / 2);
                var a = this.options.animation;
                var p = this.options.position;

                if (f) {

                    if (p == 'left' || p == 'right') {
                        m.css({ top: x, left: p == "right" ? (v.left + v.width) : 0 });
                    }
                    else {
                        m.css({ top: p == "bottom" ? v.top + v.height : 0, left: y }); // 
                    }
                    // m.css({ top: p.top, left: p.left, width: 0, height: 0 }); // 
                }


                m.stop().animate({ left: y, top: x }, { duration: a.duration, queue: a.queue, easing: a.easing });

            },



            close: function (args) {

                this.visibled = false;

                this.I().animate({
                    'opacity': 0,
                    'top': '-=50'
                }, this.options.animation.duration, $.proxy(function () {

                    this.getContent().empty();
                    this.getTitle().empty();
                    this.getObj().hide();
                    this.stop();
                    if (this.options.modal) {
                        this.Overlay.hide(this.options.closeCallback, args);
                    } else {

                        if ($.isFunction(this.options.closeCallback) && args != undefined) {
                            this.options.closeCallback.apply(window, $.makeArray(args));
                        }
                    }


                }, this));


            },

            addEvents: function () {
                $(window).unbind("resize.koolbox scroll.koolbox").bind("resize.koolbox scroll.koolbox", $.proxy(function () {
                    this.showPosition();
                }, this));

                $(window).unbind("keydown.koolbox").bind('keydown.koolbox', $.proxy(function (e) {

                    if (this.visibled) {
                        var k = this.keyboard;
                        switch (e.keyCode) {
                            case k.ESCAPE:
                                this.close();
                                e.preventDefault();
                                break;
                            case k.LEFT:
                            case k.UP:
                                if (this.GL.total > 1)
                                    this.prev();
                                break;
                            case k.RIGHT:
                            case k.DOWN:
                                if (this.GL.total > 1)
                                    this.next();
                                break;
                            case k.ENTER:
                                if ((this.options.type == 'alert' || this.options.type == 'prompt') && !(/option|textarea|select/i.test(e.target.nodeName) || e.target.type === "text")) {
                                    this.getOk().trigger('click');
                                    e.preventDefault();
                                }

                                break;

                        }

                    }


                }, this));


                this.getClose().unbind("click.koolbox").bind("click.koolbox", $.proxy(this.close, this));

                /*
                if (!this.options.controls.alwayDisplay) {
                this.getBody().hover(
                $.proxy(function () {
                //this.getControls().addClass('controls-over');
                this.showControls();
                }, this),
                $.proxy(function () {
                this.getControls().hide();
                }, this)
                );
                }

                */

                this.getNext().unbind("click.koolbox").bind('click.koolbox', $.proxy(this.next, this));

                this.getPrev().unbind("click.koolbox").bind('click.koolbox', $.proxy(this.prev, this));

                this.getPlay().unbind('click.koolbox').bind('click.koolbox', $.proxy(function () {
                    if (this.timer == null) {
                        this.play();
                    }
                    else {
                        this.stop();
                    }
                }, this));


                if ($.isFunction(this.options.showCallback)) { this.options.showCallback.apply(); }


            },

            switchMode: function (s) {
                if (!this.isNullOrEmpty(s) && s != this.mode) {
                    s = 'mode-' + s;
                    var i = this.getBody();
                    if (!this.isNullOrEmpty(this.mode)) {
                        i.removeClass(this.mode);
                    }
                    i.addClass(s);
                    this.mode = s;
                }

            },

            switchTheme: function (s) {
                if (!this.isNullOrEmpty(s) && s != this.theme) {
                    s = 'kb-' + s;
                    var i = this.I();
                    if (!this.isNullOrEmpty(this.theme)) {
                        i.removeClass(this.theme);
                    }
                    i.addClass(s);
                    this.theme = s;
                }
            },

            parseSize: function (width, height) {

                var W = $(window).width() * 0.9;
                var H = $(window).height() * 0.9;
                if (width > W) {
                    height = height * (W / width);
                    width = W;
                    if (height > H) {
                        width = width * (H / height);
                        height = H;
                    }
                } else if (height > H) {
                    width = width * (H / height);
                    height = H;
                    if (width > W) {
                        height = height * (W / width);
                        width = W;
                    }
                }
                return { width: parseInt(width), height: parseInt(height) };

            },



            resize: function (w, h) {

                var b = this.getBody();
                var _w = !this.undefined(w) ? w : b.outerWidth();
                var _h = !this.undefined(h) ? h : b.outerHeight();
                this.width = _w;
                this.height = _h;
                b.css({ width: _w, height: _h });
                this.showPosition();

            },

            create: function () {

                var o = this.options;

                if (this.Id == null) {
                    this.Id = 'koolbox_' + new Date().getTime();
                    $('body').append(this.format(this.tmp, this.Id));

                }

                if (o.modal) {
                    var ol = $.extend({}, o.overlay, { zIndex: o.zIndex - 1, click: o.hideModalClick ? $.proxy(this.close, this) : null });
                    this.Overlay.show(ol);
                };

                this.I().css({
                    position: 'absolute',
                    opacity: 1.0,
                    'z-index': o.zIndex
                }).show();

                if (!this.isNullOrEmpty(o.title)) {
                    this.getTitle().html(o.title).show();
                } else {
                    this.getTitle().hide();
                }
                this.resize(o.width, o.height);
                this.getDesc().hide();
                this.getControls().hide();
                this.getFoot().hide();
                this.switchTheme(o.theme);
                this.switchMode(o.mode);

                if (this.oldIE()) {
                    this.pngFix();
                }
                this.addEvents();
                this.visibled = true;
            },

            getDescription: function (x) {

                if (!this.undefined(this.GL.descs) && this.GL.descs.length > x) {
                    return this.GL.descs[x];
                }
                return '';
            },

            shake: function () {
                var m = this.I();
                for (var i = 0; i < 2; i++) {
                    m.animate({ left: "+=20" }, 100);
                    m.animate({ left: "-=20" }, 100);
                };

            },
            show: function (a, c, d, u) {
                var q = this.queryStringToObject(a);
                $.extend(c, q || {});
                var o = $.extend(true, {}, this.defaults, c || {});
                this.options = o;
                this.create();
                this.showPosition(true);
                this.loading = false;
                var html;
                this.GL.imgs = [];
                this.GL.total = 0;
                if ($.isArray(a) && a.length > 1) {
                    var index = !this.undefined(u) ? $.inArray(u, a) : 0;
                    this.GL.i = index;
                    this.GL.imgs = a;
                    this.GL.descs = d;
                    this.GL.total = a.length;
                    this.getControls().show();
                    this.showImg(a[index], this.getDescription(index));

                    if (o.preload) {
                        this.preloadImages(a);
                    }

                    if (o.autoPlay) {
                        this.play();
                    }

                }
                else if (this.isImage(a)) {
                    this.showImg(a, d);
                }
                else if (o.type == 'iframe') {
                    html = this.format('<iframe id="{0}_iframe" src="{1}" width="{2}" height="{3}" frameborder="0"></iframe>', this.Id, a, o.width, o.height);
                    this.showHtml(html);
                }
                else if (o.type == 'ajax') {
                    this.ajax(a);
                }
                else {

                    var b = false;
                    $.each(this.medias, $.proxy(function (i, v) {
                        var match = a.match(v.reg);
                        if (match) {
                            var url = !this.undefined(v.url) ? this.format(v.url, match[1]) : a;
                            var t = !this.undefined(v.type) ? v.type : 'application/x-shockwave-flash';
                            this.embed(url, c.width, c.height, v.flashvars, t);
                            b = true;
                            return;
                        }
                    }, this));

                    if (!b) {
                        $.each(this.maps, $.proxy(function (i, v) {
                            var match = a.match(v.reg);
                            if (match) {
                                var url = this.format(v.url, match[1]);
                                html = this.format('<iframe id="{0}_iframe" src="{1}" width="{2}" height="{3}" frameborder="0"></iframe>', this.Id, url, o.width, o.height);
                                this.showHtml(html);
                                b = true;
                                return;
                            }
                        }, this));

                    }

                    if (!b) {

                        if (a.match(/#/)) {
                            var e = a.substr(a.indexOf("#"));
                            if ($(e).length > 0) {
                                html = $(a).clone(true).show().addClass('content-padding');
                                this.showHtml(html);
                            }
                        } else {
                            this.ajax(a);
                        }
                    }


                }

            },


            next: function () {

                //if (this.GL.total <= 1) return;
                if (this.loading) return;
                var x = this.GL.i;
                if (x + 1 >= this.GL.total) {
                    x = 0;
                } else {
                    x = x + 1;
                }
                this.GL.i = x;
                this.showImg(this.GL.imgs[x], this.getDescription(x));
            },

            prev: function () {
                var x = this.GL.i;
                if (x - 1 < 0) {
                    x = this.GL.total - 1;
                } else {
                    x = x - 1;
                }
                this.GL.i = x;
                this.showImg(this.GL.imgs[x], this.getDescription(x));
            },

            play: function () {

                this.getPlay().removeClass('kb-play').addClass('kb-stop');
                this.timer = window.setInterval($.proxy(this.next, this), this.options.interval);

            },
            stop: function () {
                this.getPlay().removeClass('kb-stop').addClass('kb-play');
                window.clearInterval(this.timer);
                this.timer = null;
            },

            embed: function (src, w, h, fvars, t) {
                var f = this.flash;
                var flashvars = $.extend({}, this.flash.flashvars, fvars || {});
                var width = !this.undefined(w) ? w : f.width;
                var height = !this.undefined(h) ? h : f.height;
                var v = this.objectToArgs(flashvars);
                var html = this.format(f.tmp, src, width, height, v, t);
                this.resize(width, height);
                this.showHtml(html);
            },

            ajax: function (a) {
                this.showLoading();
                $.ajax({
                    url: a,
                    type: "GET",
                    cache: false,
                    dataType: "html",
                    error: function () {
                        alert("The requested content cannot be loaded. Please try again later.");
                    },
                    success: $.proxy(function (data) {
                        this.hideLoading();
                        var html = $(data).addClass('content-padding');
                        this.showHtml(html);
                    }, this)

                });

            },

            showHtml: function (html) {
                this.switchMode('html');
                this.getContent().html(html).show();
                this.showPosition();
            },

            showImg: function (i, d) {

                this.switchMode('image');
                this.showLoading();
                var img = new Image();
                img.src = this.oldIE() ? i + '?' + new Date().getTime() : i;
                $(img).load($.proxy(function () {
                    this.hideLoading();

                    var s = this.parseSize(img.width, img.height);

                    this.resize(s.width, s.height);
                    $(img).hide();
                    this.getContent().html(img).show();
                    $(img).css({ width: s.width, height: s.height }).fadeIn(this.options.duration);

                    if (!this.undefined(d) && d.length > 0) {
                        this.getDesc().empty().html(d).show();
                    }
                    else {
                        this.getDesc().hide();
                    }

                    //                    if (this.options.controls.alwayDisplay) {
                    //                        this.showControls();
                    //                    }

                }, this));
            },

            msg: function (m, o) {
                o = $.extend(true, {}, this.defaults, { width: 400, height: 'auto' }, o || {});
                this.options = o;
                this.create();
                this.switchMode('message');
                var c = this.getContent();
                c.addClass(o.type).html(m).show();
                var b = $('<div class="button-wrapper" />');
                if (o.type == 'alert' || o.type == 'confirm') {
                    b.append($(this.format('<a href="javascript://" class="button"  id="{1}_ok">{0}</a>', o.buttons.ok, this.Id)).bind('click', $.proxy(function (e) { this.close(true); }, this)));

                    if (o.type == 'confirm') {
                        b.append($(this.format('<a href="javascript://" class="button" id="{1}_cancel" >{0}</a>', o.buttons.cancel, this.Id)).bind('click', $.proxy(function (e) { this.close(false); }, this)));
                    }
                }
                else if (o.type == "prompt") {

                    var prompt = $(this.format('<input type="text" id="{0}_prompt" value="{1}" />', this.Id, !this.undefined(o.value) ? o.value : '')).bind('keydown', $.proxy(function (e) {
                        var val = prompt.val();
                        if (e.keyCode == 13 && val.length > 0) {
                            this.close(val);
                        }

                    }, this));

                    var btnOk = $(this.format('<a href="javascript://" class="button" id="{1}_ok" >{0}</a>', o.buttons.ok, this.Id)).bind('click', $.proxy(function (e) {
                        if (prompt.val().length <= 0) {
                            prompt.focus();
                            this.shake();
                        }
                        else {
                            this.close(prompt.val());
                        }
                        e.preventDefault();
                    }, this));


                    c.append(prompt);

                    b.append(btnOk).append($(this.format('<a href="javascript://" class="button" id="{1}_cancel" >{0}</a>', o.buttons.cancel, this.Id)).bind('click', $.proxy(function (e) { this.close(); }, this)));
                }
                this.getFoot().html(b).show();
                this.showPosition(true);
            },

            alert: function (msg, options, callback) {
                var o = $.extend({}, { type: 'alert', closeCallback: callback }, options || {});
                this.msg(msg, o);
            },

            confirm: function (msg, options, callback) {
                var o = $.extend({}, { type: 'confirm', closeCallback: callback }, options || {});
                this.msg(msg, o);
            },

            prompt: function (msg, options, callback) {
                var o = $.extend({}, { type: 'prompt', closeCallback: callback }, options || {});
                this.msg(msg, o);
            }

        }



    });


    $.fn.koolbox = function (options) {
        return $(this).bind('click', function (e) {

            e.preventDefault();
            var m = $(this);
            m.blur();
            var u = m.attr('href');
            //var p = m.offset();
            var a = [];
            var d = [];
            var r = $.trim(m.attr('rel')) || '';
            var t = $.trim(m.attr('title')) || '';

            if (!r || r == '' || r === 'nofollow') {
                a.push(u);
                if (t && t != '') {
                    d.push(t);
                }
            }
            else {

                $("a[rel=" + r + "], area[rel=" + r + "]").each(function () {
                    a.push($(this).attr('href'));
                    d.push($(this).attr('title'));

                });
            }

            if (a.length == 1) a = a[0];
            if (d.length == 1) d = d[0];
            var o = $.extend(true, {}, options || {}, $.metadata ? m.metadata() : $.meta ? m.data() : {});
            //            if (o) {
            //                o.position = p;
            //            }
            $.KoolBox.show(a, o, d, u);
        });
    };

})(jQuery);